// TODC Bootstrap functions
//
// Utility mixins and functions for evaluating source code across our variables, maps, and mixins.

@function btn-legacy-default-color-map($color) {
  // stylelint-disable
  $btn-color-map: ();
  $btn-color-map: map-merge((
    "background":         $color,
    "border-color":       shade-color(desaturate(adjust-hue($color, -1), 15.12), 38.04),
    "start-color":        tint-color(saturate($color, 16.70), 9.02),
    "end-color":          $color,
    "hover-border-color": shade-color(desaturate($color, 14.88), 27.84),
    "hover-start-color":  tint-color(saturate($color, 16.70), 9.02),
    "hover-end-color":    shade-color(desaturate($color, 16.50), 18.82),
    "active-start-color": tint-color(saturate($color, 16.70), 9.02),
    "active-end-color":   shade-color(desaturate($color, 17.06), 29.02)
  ), $btn-color-map);
  // stylelint-enable

  @return $btn-color-map;
}

@function btn-legacy-color-map($btn-color) {
  @return map-get($btn-legacy-colors, $btn-color);
}

@function btn-legacy-color-key($btn-legacy-color-map, $key) {
  @return map-get($btn-legacy-color-map, $key);
}
